package com.yanjiali.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Package: com.yanjiali.config
 * @Author: yanjiali
 * @Created: 2025/5/5 18:53
 */
@Configuration
public class QianFanConfig implements WebMvcConfigurer {

    /**
     * 注入一个基于Restful风格的请求模板类
     * @return
     */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
